package cn.edu.nwafu.hjpg.dao;

import cn.edu.nwafu.hjpg.entity.Hjxwb;
import cn.edu.nwafu.hjpg.entity.Lhsxb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface HjxwbDao extends MongoRepository<Hjxwb,String> {
    List<Hjxwb> findElementByBaseinfoWzbmAndAttributeAndFlag(String baseinfoWzbm,String attribute,String flag);
    Page<Hjxwb> findAllByflag(String flag, Pageable pageable);
    List<Hjxwb> findAll();
    List<Hjxwb> findAllByBaseinfoWzbmAndFlag(String id, String flag);

    Page<?> findAllByflagAndAttribute(String id, String attribute, int flag, Pageable pageable);
}
